package com.atguigu.guli.service.ucenter;

import com.atguigu.guli.service.ucenter.entity.Member;
import org.junit.jupiter.api.Test;
import org.springframework.beans.BeanUtils;

public class CopyProperties {

    @Test
    public void testCopy() {
        Member member = new Member();
        member.setAge(12);
        member.setNickname("李四");
        member.setPassword("123456");

        Member member1 = new Member();

        BeanUtils.copyProperties(member, member1);

        System.out.println(member1);
    }
}
